
// function proxy_watch(obj) {
//     return new Proxy(obj, {
//         get(target, p, receiver) {
//             let val = Reflect.get(...arguments);
//             console.table([{'类型':'get<--','调用者':target,'类型':p,'值':target[p]}])
//             return val
//         },
//         set(target, p, value, receiver) {
//             console.table([{'类型':'set-->','调用者':target,'属性':p,'值':value}])
//             return Reflect.set(...arguments)
//         }
//     });
// }
function proxy_watch(obj) {
    return new Proxy(obj, {
        get(target, key, receiver) {
            let val = Reflect.get(...arguments);
                console.log("get->", key, target[key]);
                return val;
            }
        ,
            set(target, key, value, receiver) {
                console.log("set=>", key, value);
                return Reflect.set(...arguments)
            }
        });
}
window=global;
delete global;
delete Buffer;

navigator={
}
navigator.webdriver=false
navigator.userAgent='Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36'

screen={}
screen.availWidth=1920;

history={}
history.back=function back(){};

location={}
location.href='https://pinduoduo.com/home/shoes/';

document={}
document.referer='https://pinduoduo.com/home/furniture/';
document.cookie='api_uid=CkCBHWVxrrGaYABwBPzeAg==; _nano_fp=Xpmonpmylp9YnqTxl9_EgWApJwqoY2KcE44iUiiE'
document.addEventListener=function addEventListener(){};

window=proxy_watch(window)
navigator=proxy_watch(navigator)
screen=proxy_watch(screen)
history=proxy_watch(history)
location=proxy_watch(location)
document=proxy_watch(document)

require('./model.js')
!function(e) {
    function r(r) {
        for (var n, l, f = r[0], i = r[1], a = r[2], c = 0, s = []; c < f.length; c++)
            l = f[c],
            o[l] && s.push(o[l][0]),
            o[l] = 0;
        for (n in i)
            Object.prototype.hasOwnProperty.call(i, n) && (e[n] = i[n]);
        for (p && p(r); s.length; )
            s.shift()();
        return u.push.apply(u, a || []),
        t()
    }
    function t() {
        for (var e, r = 0; r < u.length; r++) {
            for (var t = u[r], n = !0, f = 1; f < t.length; f++) {
                var i = t[f];
                0 !== o[i] && (n = !1)
            }
            n && (u.splice(r--, 1),
            e = l(l.s = t[0]))
        }
        return e
    }
    var n = {}
      , o = {
        1: 0
    }
      , u = [];
    function l(r) {
        console.log(r)
        if (n[r])
            return n[r].exports;
        var t = n[r] = {
            i: r,
            l: !1,
            exports: {}
        }
          , o = !0;
        try {
            e[r].call(t.exports, t, t.exports, l),
            o = !1
        } finally {
            o && delete n[r]
        }
        return t.l = !0,
        t.exports
    }
    window.loader=l
    l.m = e,
    l.c = n,
    l.d = function(e, r, t) {
        l.o(e, r) || Object.defineProperty(e, r, {
            enumerable: !0,
            get: t
        })
    }
    ,
    l.r = function(e) {
        "undefined" != typeof Symbol && Symbol.toStringTag && Object.defineProperty(e, Symbol.toStringTag, {
            value: "Module"
        }),
        Object.defineProperty(e, "__esModule", {
            value: !0
        })
    }
    ,
    l.t = function(e, r) {
        if (1 & r && (e = l(e)),
        8 & r)
            return e;
        if (4 & r && "object" == typeof e && e && e.__esModule)
            return e;
        var t = Object.create(null);
        if (l.r(t),
        Object.defineProperty(t, "default", {
            enumerable: !0,
            value: e
        }),
        2 & r && "string" != typeof e)
            for (var n in e)
                l.d(t, n, function(r) {
                    return e[r]
                }
                .bind(null, n));
        return t
    }
    ,
    l.n = function(e) {
        var r = e && e.__esModule ? function() {
            return e.default
        }
        : function() {
            return e
        }
        ;
        return l.d(r, "a", r),
        r
    }
    ,
    l.o = function(e, r) {
        return Object.prototype.hasOwnProperty.call(e, r)
    }
    ,
    l.p = "";
    var f = window.webpackJsonp = window.webpackJsonp || []
      , i = f.push.bind(f);
    f.push = r,
    f = f.slice();
    for (var a = 0; a < f.length; a++)
        r(f[a]);
    var p = i;
    t()
}([]);

function fn(){
    window.loader('fbeZ')
    window.lt['updateServerTime'](new Date().getTime())
    return window.xxx()
}
debugger;
console.log(fn())
debugger;
// console.log(window.lt.updateServerTime)
debugger;

